package com.homer.commons.sscpprotocol.client.impl;

import java.io.IOException;
import java.net.Socket;
import java.util.Map;

import com.homer.commons.sscpprotocol.client.Result;
import com.homer.commons.sscpprotocol.client.ResultListener;

public abstract interface Connection
{
  public abstract Socket socket();

  public abstract Result execute(Map<String, Object> paramMap, byte[] paramString)
    throws IOException;

  public abstract void execute(Map<String, Object> paramMap, byte[] paramString, ResultListener paramResultListener)
    throws IOException;

  public abstract void close();
}
